<template>
	<view :style="{ paddingTop: statusBarHeight + 'px' }">
		<view class="easyPay_top">
			<u-search placeholder="输入昵称或ID查找" @search="search" :show-action="false" v-model="keyword"></u-search>
			<view class="easyPay_bal">
				<image class="bg" src="http://www.bobei.shop/static/third/my/Slice 157.png" mode=""></image>
				<view class="easyPay_bal_dad">
					<view class="easyPay_bal_left">
						<view class="left_title">
							<image src="http://www.bobei.shop/static/third/my/Slice 155.png" mode=""></image>
							易付豆：
						</view>
						<text class="left_perice">{{ info.credit_3 }}</text>
						<view class="left_btn">
							<view @click="sellShow = true" class="left_btn_offer flex-center">
								出售
							</view>
							<view @click="toPage('/balance/easyOrder?userid=' + info.id)"
								class="left_btn_order flex-center">
								订单
							</view>
						</view>
					</view>
					<view class="easyPay_bal_line"></view>
					<view class="easyPay_bal_right flex-row">
						<view class="user_info">
							<image class="user_image" :src="info.avatar" mode=""></image>
							<view class="level_name flex-center">{{ info.serviceLevelName }}</view>
						</view>
						<view class="my_sale flex-center"
							@click="toPage('/balance/otherBalance?mysale=mysale&userid=' + info.id)">
							我的出售
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="easyPay_list">
			<view class="flex-between">
				<view></view>
				<view class="list_top_right flex-center">
					<view class="flex-row" @click="onNew">
						最新
						<image class="list_top_righticon" src="http://www.bobei.shop/static/third/my/Slice 160.png"
							mode=""></image>
					</view>
					<view class="flex-row" @click="onPrice">
						价格
						<image class="list_top_righticon" src="http://www.bobei.shop/static/third/my/Slice 161.png"
							mode=""></image>
					</view>

				</view>
			</view>
			<view v-for="item in orderList">
				<view class="list_info" @click="toPage('/balance/otherBalance?userid=' + item.user.id)" :key="item.id"
					v-if="item.user">
					<image class="user_list_image" :src="item.user.avatar" mode=""></image>
					<view class="user_list_info  flex-column flexc-betwwen">
						<view class="info">昵称： <text>{{ item.user.nickname }}</text> </view>
						<view class="info">ID： <text>{{ item.user.id }}</text> </view>
						<view class="info flex-between">
							<view>
								数量： <text>{{ item.remainingAmount }}</text>
							</view>
							<view @click.stop="onBuy(item)" class="btn flex-center">
								立即购买
							</view>
						</view>
					</view>
					<view class="info_list_price flex-center">
						单价：{{ item.unitPrice }}
					</view>
				</view>
			</view>
			<uni-load-more :status="listStatus"></uni-load-more>
		</view>
		<u-popup v-model="buyShow" mode="center" width="598rpx" border-radius="14">
			<view class="buy_popup">
				<view class="tips">
					提示
				</view>
				<view class="numPrice flex">
					数量
					<u-search placeholder="" height="40" search-icon="" :show-action="false" v-model="num"></u-search>
				</view>
				<view class="numPrice flex">
					单价
					<u-search placeholder="" height="40" search-icon="" :disabled="true" :show-action="false"
						v-model="price"></u-search>
				</view>
				<text class="allPrice">总价：{{ buyTotal }}</text>

				<button @click="onBuyShow" class="btn_popup flex-center">
					购买
				</button>
			</view>
		</u-popup>
		<u-popup v-model="sellShow" mode="center" width="598rpx" border-radius="14">
			<view class="buy_popup">
				<view class="tips">
					提示
				</view>
				<view class="numPrice flex">
					数量
					<u-search placeholder="" height="40" search-icon="" :show-action="false" v-model="sellNum">
					</u-search>
				</view>
				<view class="numPrice flex">
					单价
					<u-search placeholder="" height="40" search-icon="" :show-action="false" v-model="sellPrice">
					</u-search>
					<view class="num">
						({{ sellParam.startmin }}～{{ sellParam.startmax }})
					</view>
				</view>
				<text class="allPrice">总价：{{ sellTotal }}</text>
				<button @click="onSellShow" :disabled="sellDisabled"
					:class="[sellDisabled ? 'btn_popup flex-center btn_popup_dis' : 'btn_popup flex-center']">
					出售
				</button>
			</view>
		</u-popup>

		<my-popup-tips type="bottom" :showTips="paywayShow" @tipsOpen="paywayOpen" @tipsClose="paywayClose">
			<template #default>
				<view class="paywayBox">
					<image class="close" src="http://www.bobei.shop/static/my/payway/close.png"
						@click="paywayShow = false"></image>
					<view class="paywayTitle">
						选择支付方式
					</view>

					<view class="way">
						<view class="wayItem flex-between" v-for="item in actions" :key="item.id"
							@click="onWayItem(item)">
							<view class="wayItemLeft flex-row">
								<image class="wayItemLeftImg" :src="item.image"></image>
								<view class="wayItemLeftCon">
									<view class="wayItemLeftConText">
										{{ item.name }}
									</view>
									<!-- 	<view class="wayItemLeftConCard">
									123456789
								</view> -->
								</view>
							</view>
							<view class="wayItemRight">
								<image class="choose" src="http://www.bobei.shop/static/login/choose.png"
									v-if="!item.status">
								</image>
								<image class="choose" src="http://www.bobei.shop/static/login/choosed.png"
									v-if="item.status">
								</image>
							</view>
						</view>

						<view class="wayItem flex-between" @click="goMyBankCard('/pages/my/bank/myBankCard')">
							<view class="wayItemLeft flex-row">
								<image class="wayItemLeftImg" src="http://www.bobei.shop/static/my/payway/yinHang.png">
								</image>
								<view class="wayItemLeftCon">
									<view class="wayItemLeftConText">
										添加银行卡
									</view>
								</view>
							</view>
							<view class="wayItemRight">
								<view class="add flex-row">
									<view class="addText">
										去添加
									</view>
									<image class="arrowRight" src="http://www.bobei.shop/static/home/arrowRight.png"
										mode=""></image>
								</view>
							</view>
						</view>
					</view>

					<button class="paySure" :plain="true" @click="onPaySure">确认付款</button>
				</view>
			</template>
		</my-popup-tips>

		<!-- 密码框 -->
		<my-popup-tips :showTips="passShow" :mask="true" @tipsOpen="passTipsOpen" @tipsClose="passTipsClose">
			<view class="passTipsBox">
				<view class="tipsTitle flex-center">
					提示
				</view>

				<view class="tipsText flex-center">
					<input type="password" class="safeword" v-model="safeword" placeholder="请输入支付密码">
				</view>

				<view class="tipsBtnBox flex-between">
					<button class="tipsCloseBtn" :plain="true" @click="onPassTipsCloseBtn">取消</button>
					<button class="tipsSureBtn" :plain="true" :disabled="oneClick" @click="onPassTipsSureBtn">确定</button>
				</view>
			</view>
		</my-popup-tips>


		<my-popup-tips :showTips="showTips" @tipsOpen="tipsOpen" @tipsClose="tipsClose">
			<template #default>
				<view class="tipsBox flex-row">
					<view class="tipsTitle flex-center">
						提示
					</view>
					<image class="fail" src="http://www.bobei.shop/static/home/success.png" v-if="payReasult"></image>
					<image class="fail" src="http://www.bobei.shop/static/home/fail.png" v-if="!payReasult"></image>
					<view class="failReason" v-if="payReasult">
						支付成功
					</view>
					<view class="failReason" v-if="!payReasult">
						支付失败
					</view>
					<view class="tipsLine"></view>
					<view class="tipsBtnBox flex-center">

						<button class="sureBtn" :plain="true" @click="onSureBtn">确定</button>

					</view>
				</view>
			</template>
		</my-popup-tips>

		<!-- 完善信息提示弹窗组件 -->
		<perfect-information :showTips="infoShowTips" :mask="true" type="center" @tipsOpen="infoTipsOpen"
			@tipsClose="infoTipsClose" @onPrefect="infoOnPrefect"></perfect-information>

	</view>
</template>

<script>
	import myPopupTips from "../../components/my-popup-tips/my-popup-tips.vue";
	import perfectInformation from "../../components/perfect-information/perfect-information.vue";
	export default {
		components: {
			"my-popup-tips": myPopupTips,
			"perfect-information": perfectInformation,
		},
		data() {
			return {
				info: {},
				infoShowTips: false,

				priceSort: "", // 1价格由高到低 0价格由低到高 不传为综合
				timeSort: "", // 1时间由高到低 0时间由低到高 不传为综合
				form: {
					page: 1,
					lastId: 0,
				},
				loading: false,
				finished: false,
				orderList: [],

				sellParam: {},
				sellDisabled: true,




				num: '',
				price: '',
				buyId: "",

				statusBarHeight: 0,
				sellNum: '',
				sellPrice: '',

				buyShow: false,
				sellShow: false,
				keyword: '',

				paywayShow: false,
				bankIcon: {
					CIB: "http://www.bobei.shop/static/my/payway/CIB.png", // 兴业银行
					ECITIC: "http://www.bobei.shop/static/my/payway/ECITIC.png", // 中信银行
					PINGANBANK: "http://www.bobei.shop/static/my/payway/PINGANBANK.png", // 平安银行
					SHB: "http://www.bobei.shop/static/my/payway/SHB.png", // 上海银行
					ABC: "http://www.bobei.shop/static/my/payway/ABC.png", // 农业银行
					BCCB: "http://www.bobei.shop/static/my/payway/BCCB.png", // 北京银行
					BOC: "http://www.bobei.shop/static/my/payway/BOC.png", // 中国银行
					BOCO: "http://www.bobei.shop/static/my/payway/BOCO.png", // 交通银行
					CCB: "http://www.bobei.shop/static/my/payway/CCB.png", // 建设银行
					CEB: "http://www.bobei.shop/static/my/payway/CEB.png", // 光大银行
					CGB: "http://www.bobei.shop/static/my/payway/CGB.png", // 广发银行
					CMBC: "http://www.bobei.shop/static/my/payway/CMBC.png", // 民生银行
					CMBCHINA: "http://www.bobei.shop/static/my/payway/CMBCHINA.png", // 招商银行
					HXB: "http://www.bobei.shop/static/my/payway/HXB.png", // 华夏银行
					ICBC: "http://www.bobei.shop/static/my/payway/ICBC.png", // 工商银行
					POST: "http://www.bobei.shop/static/my/payway/POST.png", // 邮储银行
					SPDB: "http://www.bobei.shop/static/my/payway/SPDB.png", // 浦发银安
				},
				actionsChoose: {
					name: "", // 支付方式名称
					id: "", // 支付方式id
					status: false, // 是否选中
					image: "", // 支付方式图标
					bankCardId: "", // 银行卡支付的银行卡id
					bankAbb: "", // 银行缩写大写字母
					cardNo: "", // 银行卡号
				},
				actions: [],
				actions2: [{
						name: "账户余额", // 支付方式名称
						id: "0", // 支付方式id
						status: false, // 是否选中
						image: "http://www.bobei.shop/static/my/payway/yuE.png", // 支付方式图标
						bankCardId: "", // 银行卡支付的银行卡id
						bankAbb: "", // 银行缩写大写字母
					},
					// {
					// 	name: "微信支付",
					// 	id: "1",
					// 	status: false,
					// 	image: "http://www.bobei.shop/static/my/payway/weiXin.png",
					// 	bankCardId: "",
					// 	bankAbb: "",
					// },
					{
						name: "支付宝支付",
						id: "2",
						status: false,
						image: "http://www.bobei.shop/static/my/payway/zhiFuBao.png",
						bankCardId: "",
						bankAbb: "",
					},
					//// 微信APP支付
					// {
					// 	name: "微信APP",
					// 	id: "11",
					// 	status: false,
					// 	image: "http://www.bobei.shop/static/my/payway/weiXin.png",
					// 	bankCardId: "",
					// 	bankAbb: "",
					// },
					//// 支付宝APP支付
					// {
					// 	name: "支付宝APP",
					// 	id: "12",
					// 	status: false,
					// 	image: "http://www.bobei.shop/static/my/payway/zhiFuBao.png",
					// 	bankCardId: "",
					// 	bankAbb: "",
					// },
					// {
					// 	name: "云闪付",
					// 	id: "3",
					// 	status: false,
					// 	image: "http://www.bobei.shop/static/my/payway/yuShanFu.png",
					// 	bankCardId: "",
					// 	bankAbb: "",
					// },
				],
				interval: "",
				passShow: false,
				safeword: "",
				oneClick: false,

				showTips: false,
				payReasult: false, // 支付结果 true 或 false
				
			}
		},
		onLoad() {
			this.statusBarHeight = this.$mySysInfo().top;
		},
		onShow() {
			if (uni.getStorageSync('token')) {
				this.getInfo();
				this.getBankCardList();
			}
			this.getSellParam();
			this.refresh();

		},
		onHide() {
			clearInterval(this.interval)
		},
		onUnload() {
			clearInterval(this.interval)
		},
		onReachBottom() {
			this.getOrderList();
		},
		watch: {
			sellPrice(val) {
				if (Number(val) < Number(this.sellParam.startmin) || Number(val) > Number(this.sellParam.startmax)) {
					this.sellDisabled = true;
				} else {
					this.sellDisabled = false;
				}
			},
		},
		computed: {
			listStatus() {
				if (this.finished) return "noMore";
				if (this.loading) return "loading";
				return "more";
			},
			sellTotal() {
				let a = this.sellNum * this.sellPrice;
				return a;
			},
			buyTotal() {
				let b = this.num * this.price;
				return b;
			},
		},
		methods: {
			infoTipsOpen(param) {
				this.infoShowTips = param;
			},
			infoTipsClose(param) {
				this.infoShowTips = param;
			},
			infoOnPrefect() {
				uni.navigateTo({
					url: "/setting/improveData"
				})
				this.infoShowTips = false;
			},
			tipsOpen(param) {
				// console.log("tips弹出", param)
			},
			tipsClose(param) {
				// console.log("tips关闭", param)
			},
			onSureBtn() {
				this.showTips = false;
				this.refresh();
			},
			onPassTipsSureBtn() {
				if (!this.safeword) {
					uni.showToast({
						title: "请输入支付密码密码",
						icon: "none",
						duration: 1500
					})
					return;
				}
				this.oneClick = true;

				this.$post({
					module: "Market",
					interface: "3001",
					data: {
						id: this.buyId,
						cardId:this.actionsChoose.bankCardId || 0,
						num: this.num,
						safeword: this.safeword,
						way: this.actionsChoose.id,
					},
				}).then(res => {
					// console.log("买入接口", res);

					if (this.actionsChoose.id == '0') { // 余额支付
						this.passShow = false;
						// this.paywayShow = false;
						this.payReasult = true;
						this.showTips = true;
						setTimeout(() => {
							this.oneClick = false;
						},1500)
					}
					if (this.actionsChoose.id == '2') { // 支付宝H5支付
						// #ifdef  H5
						window.location.href =res.pay.charge;
						// #endif
						// #ifdef  APP-PLUS
						// uniapp打开浏览器
						console.log(res)
						plus.runtime.openURL(res.pay.charge);
						// #endif
					} 
					else if (this.actionsChoose.id == '4') { // 银行卡
					this.passShow = false;
					setTimeout(() => {
						this.oneClick = false;
					},1500)
					
						// 查询银行卡支付是否成功
						// 		this.interval = setInterval(() => {
						// 			this.$post({
						// 					url: "/portal/Shop",
						// 					module: "Order",
						// 					interface: "1007",
						// 					data: {
						// 						orderNo: res.trade.orderNo,
						// 					},
						// 				})
						// 				.then((resp) => {
						// 					if (resp.status == 1) {
						// 						clearInterval(this.interval);
						// 						this.passShow = false;
						// 						// this.paywayShow = false;
						// 						this.payReasult = true;
						// 						this.showTips = true;
						// 					} else if (resp.status == 0) {
						// 						// console.log("查询支付状态中")
						// 					} else {
						// 						clearInterval(this.interval);
						// 						this.passShow = false;
						// 						// this.paywayShow = false;
						// 						this.payReasult = false;
						// 						this.showTips = true;
						// 					}
						// 				})

						// 		}, 1500);
					}
				}).catch((err) => {
					// console.log("支付错误", err)
					this.passShow = false;
					// this.paywayShow = false;
					this.payReasult = false;
					this.showTips = true;
					setTimeout(() => {
						this.oneClick = false;
					},1500)
				})

			},
			onPassTipsCloseBtn() {
				this.passShow = false;
			},
			passTipsOpen(param) {
				this.passShow = param;
			},
			passTipsClose(param) {
				this.passShow = param;
			},
			// 银行卡列表
			getBankCardList() {
				this.$post({
					module: "Finance",
					interface: "1000",
				}).then((res) => {
					// console.log("银行卡列表", res);
					let bankCardList = [];
					res.list.forEach((item, index) => {
						bankCardList[index] = {
							name: item.cardNo,
							id: "4",
							status: false,
							image: this.bankIcon[item.bankCode] ?
								this.bankIcon[item.bankCode] :
								"http://www.bobei.shop/static/my/payway/yinHang.png",
							bankCardId: item.id,
							bankAbb: item.bankCode,
							cardNo: item.cardNo,
						};
					});

					this.actions = [...this.actions2, ...bankCardList]
					this.actions[0].status = true;
					this.actionsChoose = {
						name: this.actions[0].name,
						id: this.actions[0].id,
						status: this.actions[0].status,
						image: this.actions[0].image,
						bankCardId: this.actions[0].bankCardId,
						bankAbb: this.actions[0].bankAbb,
						cardNo: this.actions[0].cardNo,
					}
					// console.log("actions", this.actions);
				});
			},
			onWayItem(param) {
				console.log(param);
				this.actions.forEach((item) => {
					item.status = false;
					if (param.id == item.id) {
						item.status = true;
						this.actionsChoose = {
							name: item.name,
							id: item.id,
							bankCardId:item.bankCardId,
							status: item.status,
							image: item.image,
							bankCardId: item.bankCardId,
							bankAbb: item.bankAbb,
							cardNo: item.cardNo,
						}
					}
				})
			},
			submitOrder() {
				this.paywayShow = true;
			},
			onPaySure() {
				this.paywayShow = false;
				this.passShow = true;

			},
			paywayOpen(param) {
				this.paywayShow = param;
			},
			paywayClose(param) {
				this.paywayShow = param;
			},
			goMyBankCard(url) {
				this.paywayShow = false;
				uni.navigateTo({
					url: url
				})
			},
			onBuyShow() {
				if (!this.num) {
					uni.showToast({
						icon: 'none',
						duration: 1500,
						title: "请输入数量",
					})
					return;
				}
				this.buyShow = false;
				this.paywayShow = true;
			},
			onBuy(param) {
				this.price = param.unitPrice;
				this.buyId = param.id;
				this.buyShow = true;
			},
			onSellShow() {
				if (!this.sellNum) {
					uni.showToast({
						icon: 'none',
						duration: 1500,
						title: "请输入数量",
					})
					return;
				}
				if (!this.sellPrice) {
					uni.showToast({
						icon: 'none',
						duration: 1500,
						title: "请输入价格",
					})
					return;
				}
				this.sellDisabled = true;
				this.$post({
					module: "Market",
					interface: "2000",
					data: {
						amount: this.sellNum,
						unitPrice: this.sellPrice,
					},
				}).then(res => {
					this.sellShow = false;
					uni.showToast({
						icon: 'none',
						duration: 1500,
						title: "操作成功",
					})
					this.refresh();
					this.sellDisabled = false;
				}).catch(() => {
					this.sellShow = false;
					setTimeout(() => {
						this.sellDisabled = false;
					},1500)
				})

			},
			getSellParam() {
				this.$post({
					module: "Market",
					interface: "2100",
				}).then(res => {
					this.sellParam = res;
				})
			},
			getInfo() {
				this.$post({
					module: "User",
					interface: "1000",
				}).then(res => {
					// // console.log("user", res)
					this.info = res;
					if (!res.mobile) {
						this.infoShowTips = true;
					}

				})
			},
			refresh() {
				this.form.page = 1;
				this.form.lastId = 0;
				this.loading = false;
				this.finished = false;
				this.orderList = [];
				this.getOrderList();
			},
			getOrderList() {
				if (this.loading || this.finished) return;
				this.loading = true;
				this.$post({
					module: 'Market',
					interface: 1001,
					data: {
						priceSort: this.priceSort,
						timeSort: this.timeSort,
						user: String(this.keyword),
						...this.form,
					}
				}).then(res => {
					this.orderList = [...this.orderList, ...res.list]
					this.form.page = res.currentPage + 1;
					this.form.lastId = res.lastId;
					if (this.form.page > res.lastPage) {
						this.finished = true;
					}
					this.loading = false;
				}).catch(() => {
					this.loading = false;
				})
			},
			onNew() {
				if (this.timeSort == 1) {
					this.timeSort = 0;
					this.refresh();
				} else {
					this.timeSort = 1;
					this.refresh();
				}
			},
			onPrice() {
				if (this.priceSort == 1) {
					this.priceSort = 0;
					this.refresh();
				} else {
					this.priceSort = 1;
					this.refresh();
				}
			},
			search() {
				this.refresh();
			},
			toPage(url) {
				uni.navigateTo({
					url: url
				})
			},

		}
	}
</script>

<style scoped lang="scss">
	.easyPay_top {
		height: 420rpx;
		padding: 30rpx;
		background-image: url('http://www.bobei.shop/static/third/my/Slice93.png');
		background-size: 100% 100%;

		.easyPay_bal {
			width: 100%;
			margin-top: 24rpx;
			height: 248rpx;
			background-size: 100% 100%;
			position: relative;

			.bg {
				width: 100%;
				height: 100%;
				opacity: 0.28;
			}

			.easyPay_bal_dad {
				width: 100%;
				height: 100%;
				display: flex;
				align-items: center;
				color: #FFFFFF;
				position: absolute;
				top: 0;
				left: 0;

				.easyPay_bal_left {
					width: 75%;
					height: 248rpx;
					opacity: 1;
					border: 0rpx solid #F7FDF5;
					padding: 26rpx 40rpx;

					.left_title {
						display: flex;
						align-items: center;

						image {
							width: 40rpx;
							height: 40rpx;
							margin-right: 10rpx;
						}

						margin-bottom: 20rpx;
					}

					.left_perice {
						font-size: 60rpx;
						font-family: PingFang SC-Medium, PingFang SC;
						font-weight: 500;
						color: #FFFFFF;
					}

					.left_btn {
						display: flex;
						margin-top: 20rpx;

						view {
							width: 100rpx;
							height: 52rpx;
							font-size: 24rpx;
							font-family: PingFang SC-Medium, PingFang SC;
							font-weight: 500;
							color: #FFFFFF;
							border-radius: 32rpx 32rpx 32rpx 32rpx;
						}

						.left_btn_offer {
							border: 2rpx solid #FFFFFF;
							margin-right: 40rpx;
						}

						.left_btn_order {
							background: #F2615F;
						}
					}
				}

				.easyPay_bal_right {
					width: 25%;
					height: 248rpx;
					flex-direction: column;
					padding-top: 12rpx;

					.user_info {
						position: relative;

						.user_image {
							width: 122rpx;
							height: 122rpx;
							border-radius: 50%;
							border: 4rpx solid #FFFFFF;
						}

						.level_name {
							min-width: 84rpx;
							height: 18rpx;
							background: #FFFFFF;
							border-radius: 4rpx 4rpx 4rpx 4rpx;
							border: 0rpx solid #FB673D;
							font-size: 12rpx;
							color: #F2615F;
							position: absolute;
							bottom: 0;
							left: 50%;
							transform: translateX(-50%);
						}
					}

					.my_sale {
						font-size: 24rpx;
						width: 112rpx;
						height: 52rpx;
						background: #F2615F;
						border-radius: 94rpx;
						margin-top: 14rpx;
					}
				}
			}
		}
	}

	.easyPay_list {
		min-height: 200rpx;
		margin-top: -30rpx;
		background-color: #FFFFFF;
		border-radius: 24rpx 24rpx 0rpx 0rpx;
		padding: 30rpx;

		.list_top_right {
			font-size: 24rpx;
			font-family: PingFang SC-Regular, PingFang SC;
			font-weight: 400;
			color: #999999;
			padding-bottom: 24rpx;

			.list_top_righticon {
				width: 26rpx;
				height: 26rpx;
				margin-right: 20rpx;
			}

		}

		.list_info {
			width: 100%;
			height: 200rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(212, 212, 212, 0.25);
			border-radius: 24rpx 24rpx 24rpx 24rpx;
			border: 2rpx solid #FBFBFB;
			margin-bottom: 24rpx;
			padding: 20rpx 30rpx;
			display: flex;
			position: relative;

			.user_list_image {
				width: 160rpx;
				height: 160rpx;
				border-radius: 16rpx 16rpx 16rpx 16rpx;
			}

			.user_list_info {
				padding-left: 20rpx;
				flex: 1;
				justify-content: space-between;

				.info {
					font-size: 24rpx;
					font-family: PingFang SC-Medium, PingFang SC;
					font-weight: 600;
					color: #000000;

					text {
						font-weight: normal;
					}

					.btn {
						width: 136rpx;
						height: 46rpx;
						background: #F2615F;
						border-radius: 26rpx 26rpx 26rpx 26rpx;
						opacity: 1;
						color: #FFFFFF;
						font-weight: normal;
					}
				}
			}
		}

		.info_list_price {
			position: absolute;
			top: 0;
			right: 0;
			color: #FFFFFF;
			// width: 118rpx;
			// height: 36rpx;
			font-size: 24rpx;
			background: linear-gradient(90deg, #F76F4C 0%, #F85954 100%);
			border-radius: 0 24rpx 0 24rpx;
			// opacity: 1;
			padding: 0 4rpx;
			white-space: nowrap;
		}
	}

	.buy_popup {
		padding: 30rpx 50rpx;

		.tips {
			text-align: center;
			font-size: 36rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 600;
			color: #000000;
			margin-bottom: 20rpx;
		}

		.numPrice {
			margin-bottom: 30rpx;
			font-size: 32rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 600;
			color: #000000;
			white-space: nowrap;

			/deep/.u-search {
				flex: none;
				width: 300rpx !important;
				margin: 0 30rpx !important;
			}

			.num {
				font-size: 24rpx;
				font-family: PingFang SC-Regular, PingFang SC;
				font-weight: 400;
				color: #999999;
			}
		}

		.allPrice {
			font-size: 24rpx;
			font-family: PingFang SC-Regular, PingFang SC;
			font-weight: 400;
			color: #999999;
			line-height: 28rpx;
		}

		/deep/.u-radio-group {
			width: 100%;
			display: flex;
			justify-content: space-between;
			margin-top: 10rpx;
		}

		.btn_popup {
			width: 244rpx;
			height: 60rpx;
			background: #F2615F;
			border-radius: 30rpx 30rpx 30rpx 30rpx;
			font-size: 24rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			margin: 40rpx auto 0;
			padding: 0;
			border: none;
		}

		.btn_popup_dis {
			background: #999999;
		}
	}

	.paywayBox {
		width: 100%;
		background-color: #ffffff;
		border-radius: 16rpx 16rpx 0 0;
		padding-top: 44rpx;
		position: relative;
		padding-bottom: 141rpx;

		.close {
			width: 48rpx;
			height: 48rpx;
			position: absolute;
			top: 18rpx;
			right: 20rpx;
			z-index: 1;
		}

		.paywayTitle {
			font-size: 36rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #333333;
			line-height: 50rpx;
			text-align: center;
		}

		.way {
			margin-top: 40rpx;

			.wayItem {
				padding: 0 39rpx 0 40rpx;
				height: 110rpx;
				border-top: 2rpx solid #F5F5F5;

				.wayItemLeft {
					.wayItemLeftImg {
						width: 44rpx;
						height: 44rpx;
					}

					.wayItemLeftCon {
						margin-left: 20rpx;

						.wayItemLeftConText {
							font-size: 30rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #333333;
							line-height: 42rpx;
						}

						.wayItemLeftConCard {
							font-size: 24rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #333333;
							line-height: 42rpx;
						}
					}
				}

				.wayItemRight {
					.choose {
						width: 40rpx;
						height: 40rpx;
					}

					.add {
						.addText {
							font-size: 26rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #999999;
							line-height: 37rpx;
						}

						.arrowRight {
							width: 32rpx;
							height: 32rpx;
						}
					}
				}
			}

			.wayItem:nth-last-of-type(1) {
				border-bottom: 2rpx solid #F5F5F5;
			}

		}

		.paySure {
			font-size: 32rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 45rpx;
			width: 610rpx;
			height: 88rpx;
			background: #F2615F;
			border-radius: 16rpx;
			margin: 40rpx auto 0;
			padding: 0;
			border: none;
		}
	}

	.passTipsBox {
		width: 550rpx;
		background: #FFFFFF;
		border-radius: 32rpx;
		padding: 30rpx;

		.tipsTitle {
			font-size: 32rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #000000;
		}

		.tipsText {
			margin-top: 30rpx;

			.safeword {
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #736464;
				line-height: 40rpx;
				width: 100%;
				height: 60rpx;
				border: 2rpx solid #333333;
				border-radius: 16rpx;
				padding-left: 10rpx;
			}
		}

		.tipsBtnBox {
			width: 100%;
			margin-top: 30rpx;

			button {
				padding: 0;
				margin: 0;
				width: 200rpx;
				height: 72rpx;
				border-radius: 52rpx;
				font-size: 28rpx;
			}

			.tipsCloseBtn {
				color: #F2615F;
				border: 2rpx solid #F2615F;
			}

			.tipsSureBtn {
				color: #ffffff;
				border: none;
				background: #F2615F;
			}
		}
	}

	.tipsBox {
		width: 550rpx;
		height: 646rpx;
		padding-top: 64rpx;
		flex-direction: column;

		.tipsTitle {
			font-size: 32rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #000000;
			line-height: 40rpx;
			margin-bottom: 80rpx;
		}

		.fail {
			width: 92rpx;
			height: 92rpx;
		}

		.failReason {
			font-size: 28rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #736464;
			line-height: 40rpx;
			margin-top: 80rpx;
		}

		.tipsLine {
			width: 100%;
			height: 2rpx;
			background-color: #EBEDF0;
			margin-top: 72rpx;
		}

		.tipsBtnBox {
			margin-top: 40rpx;

			.sureBtn {
				padding: 0;
				margin: 0 26rpx;
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #ffffff;
				width: 200rpx;
				height: 72rpx;
				background: #F2615F;
				border-radius: 52rpx;
				border: none;
			}

			.backBtn {
				padding: 0;
				margin: 0 26rpx;
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #F2615F;
				width: 200rpx;
				height: 72rpx;
				background: #ffffff;
				border-radius: 52rpx;
				border: 2rpx solid #F2615F;
			}
		}
	}
</style>